package com.mc.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mc.dao.ScienceDirectionMapper;
import com.mc.model.ScienceDirection;
import com.mc.model.ScienceDirectionWithBLOBs;
import com.mc.service.IScienceDirectionService;
@Service
public class ScienceDirectionServiceImpl implements IScienceDirectionService{

	
	@Autowired private ScienceDirectionMapper directionMapper;
	@Override
	public int deleteByPrimaryKey(Integer directionId) {
		// TODO Auto-generated method stub
		return directionMapper.deleteByPrimaryKey(directionId);
	}

	@Override 
	public void insert(Map<String,Object> record) {
		// TODO Auto-generated method stub
		 directionMapper.insert(record);
	}

	@Override
	public int insertSelective(ScienceDirectionWithBLOBs record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public ScienceDirectionWithBLOBs selectByPrimaryKey(Integer directionId) {
		// TODO Auto-generated method stub
		return directionMapper.selectByPrimaryKey(directionId);
	}

	@Override
	public int updateByPrimaryKeySelective(ScienceDirectionWithBLOBs record) {
		// TODO Auto-generated method stub
		return directionMapper.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKeyWithBLOBs(ScienceDirectionWithBLOBs record) {
		// TODO Auto-generated method stub
		return directionMapper.updateByPrimaryKeyWithBLOBs(record);
	}

	@Override
	public int updateByPrimaryKey(ScienceDirection record) {
		// TODO Auto-generated method stub
		return directionMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<ScienceDirection> selectalldirections() {
		// TODO Auto-generated method stub
		return directionMapper.selectalldirections();
	}

	@Override
	public void deldirection(int sid, int userid) {
		// TODO Auto-generated method stub
		directionMapper.deldirection(sid, userid);
	}

}
